'''
Created on 25/06/2012

@author: nacho
'''
import pygame
class Bala(pygame.sprite.Sprite):
    '''
    classdocs
    '''


    def __init__(self, image, x, y):
        '''
        Constructor
        '''
        self.image = image
        self.rect = image.get_rect()
        self.rect.top = y 
        self.rect.left = x
        
    def update(self, superficie):
        superficie.blit(self.image, self.rect)
        
    def mover(self, y):
        self.rect.move_ip(0, y)
        
    def colisiona(self, nave):
        return self.rect.colliderect(nave)
        